/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

import java.util.Date;

/**
 * @author mourad
 */
public class EcomUser implements EcomBean {
    
    private Integer id;
    private String lastName;
    private String firstName;
    private String password;
    private String adresse;
    private String cellular;
    private String phone;
    private String email;
    private EcomScore score;
    private Date createDate;
    private Date updateDate;
    private String photo;
    private EcomCountry country;
    private float balance;
    private int status;

    public String getAdresse() {
        return adresse;
    }

    public String getCellular() {
        return cellular;
    }

    public EcomCountry getCountry() {
        return country;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public String getEmail() {
        return email;
    }

    public String getFirstName() {
        return firstName;
    }

    public Integer getId() {
        return id;
    }

    public String getLastName() {
        return lastName;
    }

    public String getPassword() {
        return password;
    }

    public String getPhone() {
        return phone;
    }

    public String getPhoto() {
        return photo;
    }

    public EcomScore getScore() {
        return score;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public void setAdresse(String adresse) {
        this.adresse = adresse;
    }

    public void setCellular(String cellular) {
        this.cellular = cellular;
    }

    public void setCountry(EcomCountry country) {
        this.country = country;
    }

    public void setCreateDate(Date creatDate) {
        this.createDate = creatDate;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public void setScore(EcomScore score) {
        this.score = score;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomUser other = (EcomUser) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if ((this.lastName == null) ? (other.lastName != null) : !this.lastName.equals(other.lastName)) {
            return false;
        }
        if ((this.firstName == null) ? (other.firstName != null) : !this.firstName.equals(other.firstName)) {
            return false;
        }
        if ((this.password == null) ? (other.password != null) : !this.password.equals(other.password)) {
            return false;
        }
        if ((this.adresse == null) ? (other.adresse != null) : !this.adresse.equals(other.adresse)) {
            return false;
        }
        if ((this.cellular == null) ? (other.cellular != null) : !this.cellular.equals(other.cellular)) {
            return false;
        }
        if ((this.phone == null) ? (other.phone != null) : !this.phone.equals(other.phone)) {
            return false;
        }
        if ((this.email == null) ? (other.email != null) : !this.email.equals(other.email)) {
            return false;
        }
        if (this.score != other.score && (this.score == null || !this.score.equals(other.score))) {
            return false;
        }
        if (this.country != other.country && (this.country == null || !this.country.equals(other.country))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "User{" + "idUser=" + id + ", lastName=" + lastName + ", firstName=" + firstName + ", password=" + password + ", adresse=" + adresse + ", cellular=" + cellular + ", phone=" + phone + ", email=" + email + ", score=" + score + ", creatDate=" + createDate + ", updateDate=" + updateDate + ", photo=" + photo + ", country=" + country + '}';
    }
}
